package com.arpa.wms.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 预打包分配
 * </p>
 *
 * @author leo
 * @since 2021-07-02
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("wms_prepackaged_distribution")
@ApiModel(value="PrepackagedDistribution对象", description="预打包分配")
public class PrepackagedDistribution extends BasicEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "数据标识")
    @TableField("code")
    private String code;

    @ApiModelProperty(value = "预打包计划号")
    @TableField("prepackaged_code")
    private String prepackagedCode;

    @ApiModelProperty(value = "预打包明细标识")
    @TableField("prepackaged_item_code")
    private String prepackagedItemCode;

    @ApiModelProperty(value = "组织机构")
    @TableField("group_code")
    private String groupCode;

    @ApiModelProperty(value = "临时库存标识")
    @TableField("inventory_code")
    private String inventoryCode;

    @ApiModelProperty(value = "原库存标识")
    @TableField("old_inventory_code")
    private String oldInventoryCode;

    @ApiModelProperty(value = "库位")
    @TableField("location")
    private String location;

    @ApiModelProperty(value = "原库位号，用于作业中库存返还时操作；")
    @TableField("old_location")
    private String oldLocation;

    @ApiModelProperty(value = "分配数量")
    @TableField("distribution_quantity")
    private BigDecimal distributionQuantity;

    @ApiModelProperty(value = "拣货数量")
    @TableField("picking_quantity")
    private BigDecimal pickingQuantity;

    @ApiModelProperty(value = "拣货缺货数量")
    @TableField("pick_stock_out_num")
    private BigDecimal pickStockOutNum;

    @ApiModelProperty(value = "分配状态，0-已分配，1-已取消，2-已作废")
    @TableField("distribution_status")
    private Boolean distributionStatus;

    @ApiModelProperty(value = "库存状态")
    @TableField("goods_status_name")
    private String goodsStatusName;

    @ApiModelProperty(value = "生产日期")
    @TableField("gmt_manufacture")
    private LocalDateTime gmtManufacture;

    @ApiModelProperty(value = "过期日期")
    @TableField("gmt_expire")
    private LocalDateTime gmtExpire;

    @ApiModelProperty(value = "存货日期")
    @TableField("gmt_stock")
    private LocalDateTime gmtStock;

    @ApiModelProperty(value = "库存批次")
    @TableField("lot")
    private String lot;

    @ApiModelProperty(value = "收货批次")
    @TableField("receive_lot")
    private String receiveLot;

    @ApiModelProperty(value = "序列号")
    @TableField("serial_number")
    private String serialNumber;

    @ApiModelProperty(value = "供应商")
    @TableField("supplier")
    private String supplier;

    @ApiModelProperty(value = "扩展1")
    @TableField("extend_one")
    private String extendOne;

    @ApiModelProperty(value = "扩展2")
    @TableField("extend_two")
    private String extendTwo;

    @ApiModelProperty(value = "扩展3")
    @TableField("extend_three")
    private BigDecimal extendThree;

    @ApiModelProperty(value = "扩展4")
    @TableField("extend_four")
    private BigDecimal extendFour;

    @ApiModelProperty(value = "扩展5")
    @TableField("extend_five")
    private LocalDateTime extendFive;

    @ApiModelProperty(value = "扩展6")
    @TableField("extend_six")
    private LocalDateTime extendSix;

    @ApiModelProperty(value = "锁定状态，0-不锁，1-锁")
    @TableField("is_lock")
    private Integer isLock;

    @ApiModelProperty(value = "容器号")
    @TableField("container_bar_code")
    private String containerBarCode;

    @ApiModelProperty(value = "备注")
    @TableField("remarks")
    private String remarks;

    @ApiModelProperty(value = "拣货单号")
    @TableField("picking_code")
    private String pickingCode;

    @ApiModelProperty(value = "单位")
    @TableField("goods_unit")
    private String goodsUnit;

    @ApiModelProperty(value = "单位名称")
    @TableField("goods_unit_name")
    private String goodsUnitName;

    @ApiModelProperty(value = "状态")
    @TableField("status")
    private String status;

    @ApiModelProperty(value = "商品规格")
    @TableField("spec")
    private String spec;


}
